﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Kelper.Domain.Models
{
    public class Ingredient
    {
        [Key]
        [MaxLength(25, ErrorMessage = "The name cannot be longer than 25 characters")]
        public string Name { get; set; }

        public virtual ICollection<Recipe> Recipes { get; set; }
    }
}